﻿@inherits BaseComponent
@if ( !HasCustomRegistration )
{
    <i class="@ClassNames" style="@StyleNames" @attributes="@Attributes">
        @if ( IconProvider.IconNameAsContent && Name != null )
        {
            if ( Name is IconName )
            {
                @IconProvider.GetIconName( (IconName)Name );
            }
            else if ( Name is string )
            {
                @IconProvider.GetIconName( (string)Name );
            }
        }
    </i>
}
else
{
    @RenderCustomComponent()
}